const jwt = require('jsonwebtoken')
const keys = require('../config/keys')

exports.sign = (payload) => {
  return jwt.sign(payload, keys.secretOrKey, { expiresIn: '1Y' })
}
